﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using HA.Data;
namespace HA.ModFlow.Controls.Windows.MapData
{
    /// <summary>
    /// winGridFrameProperty.xaml 的交互逻辑
    /// </summary>
    public partial class winGridFrameProperty : Window
    {
        public winGridFrameProperty(GridFrame griframe)
        {
            InitializeComponent();
            this._gridFrame =(GridFrame) griframe.Clone(); ;
        }

        private GridFrame _gridFrame = new GridFrame();

        public GridFrame GridFrame
        {
            get { return _gridFrame; }
            set { _gridFrame = value; }
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = this._gridFrame;
        }

        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void btnCancal_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
